package com.test.demo;

import sun.misc.Unsafe;

import java.util.regex.Pattern;

/**
 * Created by Administrator on 2016/1/26.
 */
public class Demo1 {
    static boolean a;

    public static void main(String[] args) {
        String a = "\t大";
        System.out.println(a.toCharArray().length);
    }

    private static final Pattern PATTERN_NUMBER = Pattern.compile("^[0-9]+.*$");
    private static boolean isStartWithNumbers(String word) {
        return PATTERN_NUMBER.matcher(word).matches();
    }

    private static final Pattern PATTERN_LETTER = Pattern.compile("^[a-zA-z]+.*$");
    private static boolean isStartWithLetters(String word) {
        return PATTERN_LETTER.matcher(word).matches();
    }
}
